import request from '@/utils/request'

export function getFaq(admin_id, token) {
  return request({
    url: '/_adminFaq/list',
    method: 'post',
    data: {
      admin_id,
      token
    }
  })
}

export function createFaq(data) {
  return request({
    url: '/_adminFaq/add',
    method: 'post',
    data
  })
}

export function updateFaq(data) {
  return request({
    url: '/_adminFaq/edit',
    method: 'post',
    data
  })
}

export function deleteFaq(admin_id, token, faq_id) {
  return request({
    url: '/_adminFaq/delete',
    method: 'post',
    data: {
      faq_id,
      admin_id,
      token
    }
  })
}
